import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
/**
 * 统计年龄最小的员工
 */
public class MinAge {
    public static void age(List<Map<String, Object>> a) {
        Integer min = Integer.MAX_VALUE;
        Map<String, Object> minList = null;
        for (Map<String, Object> map : a) {
            Integer age = Integer.parseInt(map.get("age").toString());
            if (min > age) {
                min = age;
                minList = map;
            }
        }
        Set<Map.Entry<String, Object>> entries = minList.entrySet();
        for (Map.Entry<String, Object> entry : entries) {
            System.out.println(entry);
        }
    }
}
